package com.jet.goods.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel("分类信息")
public class CategoryDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类名", required = true)
    @NotBlank(message = "分类名不能为空")
    private String name;

    private String pid;

    private Integer sort;
}
